package com.app.micaihu.view.army.adapter

import android.widget.ImageView
import com.app.micaihu.R
import com.app.micaihu.bean.infor.AttentionAndFansBean
import com.app.micaihu.view.bean.ArmyMember
import com.app.micaihu.view.utils.loadCircleImage
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * 军团邀请迷彩虎好友 粉丝列表适配器
 */
class UserFollowListAdapter : BaseQuickAdapter<AttentionAndFansBean, BaseViewHolder>(R.layout.army_user_fans_list_item), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: AttentionAndFansBean) {
        holder.getView<ImageView>(R.id.ivHeadPic).loadCircleImage(item.headPic, R.drawable.user_head_def)
        holder.setText(R.id.tvNickName, item.nickName)
        if ("1" == item.isArmyStatus) {
            holder.setGone(R.id.tvInvite, true)
        } else {
            holder.setVisible(R.id.tvInvite, true)
        }
    }

}